<template>
  <Select :datas="data" :multiple="multiple" :value="value" @change="change" @input="input" :disabled="disabled"></Select>
</template>
<script>
export default {
  props: {
    multiple: {
      default: false,
    },
    disabled: {
      default: false,
    },
    value: "",
    params: "",
  },
  mounted() {
    this.$store.dispatch("getParams", this.params).then((data) => {
      this.data = data;
    });
  },
  data() {
    return {
      data: [],
    };
  },
  methods: {
    input(data) {
      this.$emit("input", data);
    },
    change(data) {
      this.$emit("change", data);
    },
  },
};
</script>